gridpack::mapper::GenSlabMap< _network > Class Template Reference

#include <gen_slab_map.hpp>

Collaboration diagram for gridpack::mapper::GenSlabMap< _network >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GenSlabMap (boost::shared_ptr< _network > network)
 ~GenSlabMap ()
boost::shared_ptr
< gridpack::math::Matrix
mapToMatrix (void)
gridpack::math::MatrixintMapToMatrix (void)
void mapToMatrix (gridpack::math::Matrix &matrix)
void mapToMatrix (boost::shared_ptr< gridpack::math::Matrix > &matrix)
void mapToNetwork (const gridpack::math::Matrix &matrix)
void mapToNetwork (boost::shared_ptr< gridpack::math::Matrix > &matrix)

template<class _network>
class gridpack::mapper::GenSlabMap< _network >


Constructor & Destructor Documentation

template<class _network >
gridpack::mapper::GenSlabMap< _network >::GenSlabMap ( boost::shared_ptr< _network >  network  ) 

Initialize mapper for the given network and the current mode. Create global arrays that contain offsets that will be used to create vector from the network component objects

Parameters:
network network that will generate vector
template<class _network >
gridpack::mapper::GenSlabMap< _network >::~GenSlabMap (  ) 

Member Function Documentation

template<class _network >
gridpack::math::Matrix* gridpack::mapper::GenSlabMap< _network >::intMapToMatrix ( void   ) 

Generate dense matrix from current component state on network and return a conventional pointer to it. Used for Fortran interface.

Returns:
return a pointer to new matrix

References gridpack::math::MatrixT< T, I >::createDense(), and gridpack::math::Dense.

template<class _network >
void gridpack::mapper::GenSlabMap< _network >::mapToMatrix ( boost::shared_ptr< gridpack::math::Matrix > &  matrix  ) 

Reset existing matrix from current component state on network

Parameters:
matrix existing vector (should be generated from same mapper)

References gridpack::mapper::GenSlabMap< _network >::mapToMatrix().

template<class _network >
void gridpack::mapper::GenSlabMap< _network >::mapToMatrix ( gridpack::math::Matrix matrix  ) 

Reset existing matrix from current component state on network

Parameters:
matrix existing matrix (should be generated from same mapper)

References gridpack::math::BaseMatrixInterface< T, I >::ready(), and gridpack::math::BaseMatrixInterface< T, I >::zero().

template<class _network >
boost::shared_ptr<gridpack::math::Matrix> gridpack::mapper::GenSlabMap< _network >::mapToMatrix ( void   ) 

Generate a dense matrix from current component state on network

Returns:
return a pointer to new matrix

References gridpack::math::MatrixT< T, I >::createDense(), and gridpack::math::Dense.

template<class _network >
void gridpack::mapper::GenSlabMap< _network >::mapToNetwork ( boost::shared_ptr< gridpack::math::Matrix > &  matrix  ) 

Push data from matrix onto buses and branches. Matrix must be created with the mapToMatrix method using the same GenSlabMap

Parameters:
matrix matrix containing data to be pushed to network

References gridpack::mapper::GenSlabMap< _network >::mapToNetwork().

template<class _network >
void gridpack::mapper::GenSlabMap< _network >::mapToNetwork ( const gridpack::math::Matrix matrix  ) 

Push data from matrix onto buses and branches. Matrix must be created with the mapToMatrix method using the same GenSlabMap

Parameters:
matrix matrix containing data to be pushed to network

References gridpack::math::BaseMatrixInterface< T, I >::getElement(), and gridpack::math::BaseMatrixInterface< T, I >::getRowBlock().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1